package com.znsd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 品牌表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("base_trademark")
public class BaseTrademark extends Model<BaseTrademark> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 属性值
     */
    @TableField("tm_name")
    private String tmName;
    /**
     * 品牌logo的图片路径
     */
    @TableField("logo_url")
    private String logoUrl;
    /**
     * 是否启用
     */
    @TableField("is_enable")
    private String isEnable;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTmName() {
        return tmName;
    }

    public void setTmName(String tmName) {
        this.tmName = tmName;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BaseTrademark{" +
        "id=" + id +
        ", tmName=" + tmName +
        ", logoUrl=" + logoUrl +
        ", isEnable=" + isEnable +
        "}";
    }
}
